Diplomats told E.U. officials that the bloc’s law on methane, a potent greenhouse gas, would hurt American oil and gas companies.