LBJ was one of the most shrewd politicians the US has had as president, and a lot of his policies weren't as a result of his own beliefs but rather what he thought would politically benefit him the most. His support for the civil rights act was a notable exception to that, based more on his own convictions than political concerns.