Court says Apple can still sell iPads in Shanghai