Thai court bans party for nominating princess for PM