A coalition of states had sought to temporarily block Elon Musk’s operatives from having access to sensitive data and ordering mass firings.