Thai court throws poll decision back to PM, vote body