he was a congressman and then a senator of the congress of the republic