Work of law schools across globe helped SC verdict on Section 377