* Government says it's needed to better manage state secrets
* Critics see threat to whistle-blowers and journalists
* Ratings agencies have punished S. Africa for corruption
By Jon Herskovitz
JOHANNESBURG, April 25 (Reuters) - South Africa's parliament approved a bill on Thursday for managing state secrets, ending a three-year battle over legislation critics say could be used to cover ...