On policing, religion and rents, the mayor is to the right of many liberals in New York City. He’s likely to face a progressive challenger in 2025.