A federal judge in San Francisco has sanctioned Apple by prohibiting it from asserting certain defenses in an impending privacy class action lawsuit…