The City of Dallas voted Wednesday to immediately remove a statue of Gen. Robert E. Lee from a public park, but the work was abruptly stopped by a federal judge.

Soon after the vote, workers in hard hats and yellow vests cordoned off the area around the Lee monument, which stands in Robert E. Lee Park, a green space in Dallas that is bounded on one side by Lee Parkway.

But their efforts came to a halt when Judge Sidney Fitzwater of the United States District Court for the Northern District of Texas granted a temporary restraining order halting the statue’s removal, according to Richard Hill, a spokesman for the city. A hearing on the proposed removal of the monument was scheduled for 1:30 p.m. Thursday, according to The Dallas Morning News.

Mr. Hill said the city planned to put the statue, which shows the Confederate general riding on horseback alongside an unidentified soldier, in temporary storage. Its eventual resting place had not been decided, he said.