Thai court says Pita didn't break law, six months after blocked from becoming PM