President Barack Obama said Monday that he had urged President-elect Donald Trump to reach out to minority groups, women and others who were alienated by his campaign, during the president’s first news conference since Trump won the election in a stunning upset that has imperiled Obama’s legacy.