Berlin has been pushing to allow the sale of vehicles running on synthetic fuels past 2035. Its dispute with the E.U. threatened the bloc’s climate goals.