President Joe Biden signed a hard-fought bill into law on Wednesday that provides billions of dollars of new US aid to Ukraine for its war with Russia, notching a rare bipartisan victory for the president as he seeks reelect and ending months of wrangling with Republicans in Congress.