Man pleads guilty to threatening judge on Instagram over dismissal of Section 377A challenges