Most of the nation’s colleges are gradually paring back their investments in classroom teaching, an analysis of federal data shows. And all colleges have in recent years been spending a greater share of their revenue on expenses other than instruction, including computing centers, student services, administrative salaries and lawn care.