US court says Trump can bar AP from key White House events for now