Current solar system formation theories say that as the dust and gas cloud that the solar system formed from collapsed, it started to spin. Either due to already possessing spin, or aquiring it during the collapse. This spin became more and more pronounced as the cloud collapsed due to conservation of angular momentum. When the sun and planets formed, since the cloud was rotating in a counter-clockwise direction, everything that formed rotates that way.
Anti-clockwise? That is not a way to describe the direction of revolution in a 3D space.
When the observer is out of the plane of the solar system and looking at it face-on from the side of the sun's north pole, the direction of the planets' orbits is counter-clockwise.
Obviously an observer looking at the plane face on, but from the other side of the plane, would see the orbits as going clockwise.