(CNN) Power has been restored at the Metropolitan Detention Center in Brooklyn, New York, where inmates spent several days without heat or lighting, according to a statement from the Bureau of Prisons.

"Staff are working to restore the facility to normal operations," the statement said.

Many inmates spent the weekend sitting in frigid, dark cells because of the partial power outage, according to Director of Federal Defenders of New York David Patton and a representative for the union representing the facility's workers.

Prisoners call out to protesters and family members gathered outside the Metropolitan Detention Center on Sunday.

With the heat and water now working at the prison, the Justice Department said it wants to make sure an incident like this doesn't happen again.

"In the coming days, the Department will work with the Bureau of Prisons to examine what happened and ensure the facility has the power, heat and backup systems in place to prevent the problem from reoccurring," Justice Department spokesman Wyn Hornbuckle said in a statement.

Read More