They may not like them, but they still built them up to the stage where they are a real rival to the PLO.
People often assume that Iran supports Hamas and the Iranian regime, too, have stated that they support Hamas, but it's a fickle alliance at best, and I don't think that it will last very long.