A Swedish court ordered Google to pay nearly $2 billion to a buy now, pay later company after allegations of giving preferential treatment to its own services in search results.