his political career didnt start until he gained a seat in the house of representatives and served almost two terms before returning to a security role as executive secretary of the national security council .