ST. LOUIS (AP) — St. Louis voters approved a half-cent sales tax increase that would fund pay raises for police by a 60-40 margin.

The ballot proposal will generate about $20 million in revenue each year, allowing for an average raise of up to $6,000 per officer. The median salary in St. Louis is around $51,600.

See all the results here

About $13 million will go to police, $5.4 million to the fire department and $1.5 million to the circuit attorney's office.

Mayor Lyda Krewson released a statement declaring the proposition passed a little before 10 p.m. The race went final at 9:55 with 24,009 votes cast in favor and 16,154 cast against.

The tax increase also will trigger an increase in a business use tax, bringing in $4 million. Krewson wants to use that money for crime prevention efforts such as after-school programs and mental health services.

The timing for the proposal was not great for those in support of the pay raise.

The Sept. 15 acquittal of white former police officer Jason Stockley in the shooting death of a black suspect led to angry protests, and while the size of the demonstrations has dwindled, disruptions continue, and the protests have fueled anger at police. More than 300 people have been arrested, with several alleging officers used unnecessary tear gas, pepper spray and force.

Supporters of Proposition P, including Mayor Lyda Krewson, said it is necessary to pay competitive wages to the approximate 1,200 police officers along with firefighters.

Opponents of the ballot measure questioned if police deserved a raise given the recent allegations of misconduct.

In an editorial opposing the ballot measure posted Thursday, the African-American newspaper the St. Louis American cited the mass arrest of about 120 people following a heated downtown protest on Sept. 17.

The editorial said officers "infamously trampled over constitutional rights on a night officers marched through the streets with paramilitary equipment," and Interim Police Chief Lawrence O'Toole declared that police "owned the night."

"In any other line of work, an employee this negligent of duty and offensive to the public who pays his salary would be fired — not offered millions of dollars to expand his kingdom," the American wrote.

Violent crime has risen in recent years in St. Louis, a city nearly evenly split between black and white residents. Race relations have intensified, too, following several police-involved shooting deaths of black suspects, reaching a boiling point after Stockley's acquittal of first-degree murder charges in the death of Anthony Lamar Smith.

Opponents also said the sales tax hike would disproportionally hurt the needy, who spend a higher percentage of their money on necessities.

But Krewson, in an interview, said investing in police would make the department better.

Krewson and other supporters said they worry that without raises city officers will increasingly look to take jobs in St. Louis County. Just last week, the county council approved a pay hike that will amount to an immediate 30 percent average increase for county officers. The money comes from a similar ballot measure approved by county voters in April.

St. Louis County officers will now start at $52,000, about $10,000 more than the starting pay for city officers.

"That really turned the dynamics of policing and police salaries on its head when you consider we are completely surrounded by St. Louis County," Krewson said. Without raises for city officers, she said, St. Louis County "will be able to attract our best people and it will be more difficult to recruit the best officers."

The St. Louis Police Officers Association released the following statement:

Cops Thank Community For Support Of Prop P

St. Louis, Missouri (November 7, 2017) – As election returns made it clear that Proposition P was headed for a victory Tuesday night, The St. Louis Police Officers Association (SLPOA) took a moment to express their gratitude on behalf of their 1,100 members to the citizens of St. Louis for their steadfast support of the rank-and-file officers of the police department. Speaking from an Election Day watch party at the SLPOA Hall, the police union’s president, Ed Clark, said, “We want to thank St. Louis voters for their support. This is an important moment for my members and the St. Louisans they protect every single day. The $6,000 across-the-board raise guaranteed under our police union contract represents the biggest raise in the history of the department. We still have some work to do to bring our salaries up to a level that fully competes with neighboring police departments but that’s a subject for another day. Today, we celebrate.”

Proposition P was a referendum on the St. Louis City Police Department and the results were crystal clear. Residents support the police!

Prop P Statement from Lyda Krewson