Kenya's courts have ordered the government to reopen TV stations it had shut down to prevent coverage of a public event by opposition leader, Raila Odinga.