Getting past Agrabah in Kingdom Hearts means taking on its bosses. You will need to defeat Jafar first, and then face Genie Jafar in the Cave of Wonders.
Genie Jafar is the boss battle that caps off the Agrabah chapter, so once you have beaten him, you are clear to move on. Hopefully this helps you push through the desert.