Thai court clears political party of opposing monarchy