Unions and retirees had asked for an emergency order limiting access to the agency and its vast troves of personal data.