How did James Monroe and Robert Livingston affect Jefferson's presidency? They ended the attacks of the Barbury pirates. They arranged the purchase of the Louisiana Territory. Both explored the Louisiana Territory.