Maryland's energy companies are getting a $250 million sales tax refund after a state supreme court ruling in their favor, the state's comptroller said Thursday.