Three former students accused state of racism after they were stopped and searched by police on a school trip in 2017.