A Tallahassee judge has sided with online travel companies like Expedia and Orbitz in a dispute over local tax obligations — a blow to counties that have argued the companies weren’t paying enough.

After hearing arguments last month, Circuit Judge Terry Lewis on Friday ruled that the online travel sites only owe local hotel taxes on the discounted amounts they actually pay for rooms, not the marked-up rates that travelers pay.