Supreme Court refers Section 377 petition to Chief Justice