A former lawyer, he cofounded the giant investment firm TPG and became known for complex deals that remade corporate America.