As a Democrat from a red state, Senator Heidi Heitkamp built a reputation for her willingness to buck party pressure and reach across the aisle. But when Brett Kavanaugh was nominated to the Supreme Court, she found herself facing a decision between her principles and her political fate.