Police used water cannons and pepper spray on hundreds of people protesting against bills that critics say highlight the country’s democratic backsliding and move it closer to Russia.