On Thursday, Sun learned he would face a recall election in June after King County Elections officials verified more than 415 signatures on a petition to oust the embattled mayor.
On Friday, a King County judge ordered Sun to take two of the city's top cops off administrative leave.
Sun suspended police chief John Calkins and Lt. Edwin Massy in March for what he called harassment and intimidation. The Pacific Civil Service Commission last month ruled that Sun broke the rules when he suspended the officers.
Despite that ruling, the officers said Sun refused to return their police equipment, including their badges, keys and computer access.
On Friday, a Superior Court judge sided with the commission and ordered Sun to fully reinstate the officers and return the equipment.
Both officers are expected to return to work immediately, according to a Pacific Police Department news release.