LUXEMBOURG—Google suffered one of its biggest setbacks on Wednesday when a top European court upheld a ruling that it broke competition rules and fined it a record 4.1 billion euros, in a move that may encourage other regulators to ratchet up pressure on the U.S. giant. The unit of U.S. tech giant Alphabet had challenged…