Apple Inc. avoided a $300 million patent infringement penalty on Monday after a federal appeals court ruled that faulty jury instructions violated the tech giant’s constitutional rights in its dispute with patent licensing firm Optis Cellular Technology.