When Syria’s Kurdish fighters, America’s longtime battlefield allies against Islamic State militants, announced during the weekend that they were switching sides and joining up with Damascus and Moscow, it seemed like a moment of geopolitical whiplash.