It seems like you're mixing up different events and wrapping them into one. I'm not pro-Israel or pro-Palestine...
The Middle East hates us because we support Israel.
Israel committed an illegal action by even being formed which was even denounced by the UN.
Here's the story in a super small not detailed nutshell.
Jewish refugees settle from Russia and other parts of Europe to Northern Palestine beginning in the early 1900's. They are tolerated by the British controlled territory.
More refugees arrive and tensions between the two groups escalate.
Jews form the Zionist movement, whose goal is to create a Jewish state within Palestine as the promised land. The Zionists ask and receive help from the U.S., in forms of money and other goods.
Palestinian/Jewish Refugee relations begin to sour, U.S. supplies overwhelming money, weapons, training an equipment to the Jewish refugees, they decide to go to war , they outnumber and outgun the Palestinian forces beyond belief, and the battle was over in a matter of days.
Israel is formed, and UN complains.
End of story.
(From A History of the Middle East
"In a 1917 letter from British foreign secretary Lord Balfour to Jewish financier Lord Rothschild, the British government expressed a commitment to creating a Jewish homeland in Palestine. This letter is commonly known as the Balfour Declaration.
After World War I, Palestine was assigned to the United Kingdom as a mandated territory by the League of Nations. The Palestinian Mandate initially included the lands that are now Israel and Jordan, but all lands east of the Jordan River were later placed into a separate mandate known as Transjordan (now the nation of Jordan). The document creating the Palestinian mandate incorporated the terms of the Balfour Declaration, promising the creation of a national Jewish homeland within the mandated territory. Although Arab leaders were initially willing to give Palestine to the Jews if the rest of the Arab lands in the Middle East were free, the Arabs living in Palestine vigorously opposed Jewish immigration into the territory and the idea of a Jewish homeland. It is around this time that the idea of Palestinian nationality (distinct from Arab nationality generally) first begins to appear. There were many riots in the territory, and the British came to believe that the conflicting claims were irreconcilable. In 1937, the British recommended partition of the territory.
The British were unable to come up with a solution that would satisfy either Arabs or Jews, so in 1947, they handed the problem to the newly-founded United Nations, which developed a partition plan dividing Palestine into Jewish and Arab portions. The plan was ratified in November 1947. The mandate expired on May 14, 1948 and British troops pulled out of Palestine. The Jews of Palestine promptly declared the creation of the State of Israel, which was recognized by several Western countries immediately.
However, the surrounding Arab nations did not recognize the validity of Israel and invaded, claiming that they were filling a vacuum created by the termination of the mandate and the absence of any legal authority to replace it. The Arabs fought a year-long war to drive the Jews out. Miraculously, the new state of Israel won this war, as well as every subsequent Arab-Israeli war, gaining territory every time the Arabs attacked them.
U.S. aid for Israel came later, but the battle that only lasted days was in the late 60s and was between Israel and Egypt. In that case, the U.S. did not assist at all and even quit supplying ammo. What the U.S. did was influence Israel to stop short of over-running Cairo and completely destroying the country of Egypt... and then helped to negotiate a treaty.