A major American political party selected a female as its presumptive presidential nominee for the first time, while Donald Trump swept the final Republican primaries without any active opponents.