Energy companies ordered to pay taxes