Trump proposes ‘ideological’ test for immigrants