BOSTON — A federal judge has ordered the city of Boston to revise the way it regulates taxis as the cab industry grapples with increasing competition from ride-hailing companies, including Uber and Lyft.A group of Boston taxi operators sued the city last year alleging they are being treated unfairly, in part because they have to buy expensive medallions to operate, and ride-hailing company drivers do not.