The police action was quickly challenged as lawyers for the protesters obtained a temporary restraining order barring the city and the park’s private landlord from evicting protesters or removing their belongings. It was not immediately clear how the city would respond. The judge, Lucy Billings of State Supreme Court in Manhattan, scheduled a hearing for Tuesday.