Qui-Gon and Obi-Wan are sent to Naboo in order to force the Trade Federation to make a peaceful agreement with Queen Amidala. When the invasion occurs, they decide to take Amidala to Coruscant to meet with the Senate, and inadvertently have to stop at Tatooine. After they finally make it to Coruscant, Amidala decides to go back to Naboo to fight back against the Trade Federation. However it's not until she is aboard her ship, seemingly entering her own system, that she starts to explain her plan to her subjects and the Jedi. My question is, why did the Jedi return to Naboo with her in the first place?
It seems that they were tasked with finding Darth Maul, but Darth Maul was not sent to Naboo until Palpatine heard the Jedi were returning to Naboo.