The New York Court of Appeals said in a decision Tuesday that a section of the state’s Civil Rights Law allowed the New York City Police Department to withhold certain records on police misconduct from public disclosure.

The decision could set the stage for state lawmakers to repeal that statute during the upcoming legislative session, which would then allow those documents to be obtained through a request under the Freedom of Information Law, known commonly as FOIL.