Court rules controversial UK immigration charge can continue