Temporary order caps day of chaos as White House forced to clarify move to halt government programmes