A class of local governments and their lawyers lost a bid Thursday at the U.S. Supreme Court to challenge more than $2 million in litigation costs in a dispute over online taxation involving travel companies.