Socialist surge reshapes New York and British politics in 2 key contests