he was elected deputy and senator during the government of porfirio díaz