A judge ordered the White House to temporarily restore journalists’ credentials. After hours of being shut out, some from the three banned outlets were let back in.