NBC: Thai court dismisses prime minister over Cabinet appointment