NEW YORK - Changes are coming to the NYPD after the City Council voted in favor of the Community Safety Act.

Following hours of debate through the night, council members decided in favor of the bill, which will ban discriminatory police profiling, and will appoint an inspector general to oversee the police department. That person will have subpoena power and the ability to make recommendations, but will not be able to force any policy changes.

The bill also received enough votes to override an expected veto from Mayor Michael Bloomberg, who has been a staunch opponent of any additional NYPD oversight. He says it will keep officers from doing their jobs, pointing out a steep drop in crime citywide over the past decade.

Supporters had rallied outside City Hall ahead of the vote, denouncing the controversial stop-and-frisk practice, as well as extensive surveillance of Muslims.

The legislation was spearheaded by Brooklyn Council members Jumaane Williams and Brad Lander. In a joint statement, the men called the vote a victory for all New Yorkers.