How is phosphate stable disobeying octet rule?
The octet rule is just a rule. Once you leave the 2nd row of the periodic table, the octet rule doesn't apply. Further reading: https://en.wikipedia.org/wiki/Hypervalent_molecule