Beijing Court quashes city’s intellectual property bureau’s ruling that US tech giant had violated defunct Shenzhen firm’s design patent