Regulation of T cell immunity by cellular metabolism