A day after voters handed Los Angeles $1.2 billion to build supportive housing, the City Council on Wednesday adopted a nighttime ban on living in vehicles near homes, parks and schools, over objections from advocates who contend the measure will criminalize thousands of homeless people.

A 1983 measure prohibiting vehicle-dwelling citywide had been a key enforcement tool as the city sought to control growing homelessness. That law was struck down two years ago by the 9th U.S. Circuit Court of Appeals, which held that it was an invitation to discriminate against homeless people.