The Supreme Court has severely criticised YouTuber Ranveer Allahbadia for vulgar remarks made on a comedy show.