Hillary Clinton became the first woman to capture the presidential nomination of one of the country’s major political parties on Monday night, according to an Associated Press survey of Democratic superdelegates, securing enough of them to overcome a bruising challenge from Senator Bernie Sanders and turn to a brutal five-month campaign against Donald J. Trump.