A film widely seen as criticising US immigration policy has earned the most nominations at this year’s Baftas.