Senator Richard C. Shelby made the most of his perch on the committee that controls federal spending. Now he’s leaving Congress, where his way of doing business is a fading art.