As the world has become more polarized , with Europe fearful of more terrorist attacks and worried about Muslim immigrants , Turkey has found one of its long-term ambitions , to join the European Union , on no sure path to reality .