The physician and state lawmaker secured his party’s nomination to contest a highly competitive congressional seat in the upcoming U.S. elections.