Thai court reinstates opposition mp following dismissal of media shares case