Airline passengers entering the US from next week will be secretly assigned a computer-generated terror threat rating.