A US judge has refused to immediately order the White House to restore The Associated Press' access to presidential events.