I have been able to send ships into orbit of planets, and I have attacked planets with ships in orbit. I have not yet had a ship or fleet attack one of my planets that had ships orbiting it. The planets with ships in orbit that I have attacked have defended themselves. From this I would conclude that ships in orbit of your own planets should be able to defend your planets. If they fail to do so, please open a ticket.