Energy regulators put the brakes on plans requiring oil firms to pay if their profits climb too high after two refineries announced plans to close.