Court says immigration officials must record detailed, meaningful reasons before offloading any passenger