Ex-city real estate adviser Jason Hughes pleaded guilty Thursday to a single violation of a state conflict-of-interest law and agreed to pay the city $9.4 million, the amount the city’s ex-101 Ash St. landlord paid him years ago for his work on two city lease deals.