How can the judiciary ensure the protection of students from other states in metropolitan cities?

The Supreme Court condemned the alleged assault of Kerala students in Delhi. I want to understand what steps the judiciary can take to safeguard the rights and security of students who migrate for education.