The Mamdani administration filed a motion to stop representing the former mayor, who has denied he sexually assaulted a colleague decades ago.