WASHINGTON (AP) — Supreme Court Justice Ruth Bader Ginsburg, a towering women's rights champion who became the court's second female justice, died Friday at her home in Washington. She was 87.

Ginsburg died of complications from metastatic pancreatic cancer, the court said.

Her death just over six weeks before Election Day is likely to set off a heated battle over whether President Donald Trump should nominate, and the Republican-led Senate should confirm, her replacement, or if the seat should remain vacant until the outcome of his race against Democrat Joe Biden is known.

Trump, who called Ginsburg "an amazing woman," made his view clear on Saturday: He urged the Senate to consider "without delay" his upcoming pick for the high court. "We were put in this position of power and importance to make decisions for the people who so proudly elected us," Trump tweeted, "the most important of which has long been considered to be the selection of United States Supreme Court Justices. We have this obligation, without delay!"

Majority Leader Mitch McConnell said late Friday that the Senate would vote, even though it's an election year.

Chief Justice John Roberts mourned Ginsburg's passing. "Our Nation has lost a jurist of historic stature. We at the Supreme Court have lost a cherished colleague. Today we mourn, but with confidence that future generations will remember Ruth Bader Ginsburg as we knew her — a tireless and resolute champion of justice," Roberts said in a statement.

Ginsburg announced in July that she was undergoing chemotherapy treatment for lesions on her liver, the latest of her several battles with cancer.

Ginsburg spent her final years on the bench as the unquestioned leader of the court's liberal wing and became something of a rock star to her admirers. Young women especially seemed to embrace the court's Jewish grandmother, affectionately calling her the Notorious RBG, for her defense of the rights of women and minorities, and the strength and resilience she displayed in the face of personal loss and health crises.

Those health issues included five bouts with cancer beginning in 1999, falls that resulted in broken ribs, insertion of a stent to clear a blocked artery and assorted other hospitalizations after she turned 75.

She resisted calls by liberals to retire during Barack Obama's presidency at a time when Democrats held the Senate and a replacement with similar views could have been confirmed. Instead, Trump will almost certainly try to push Ginsburg's successor through the Republican-controlled Senate — and move the conservative court even more to the right.