The Supreme Court on Friday upheld a law that could result in the app going offline as soon as Sunday.