In exchange for generous scholarships in fields such as engineering, information technology, foreign languages and public health, the scholars would commit to three to five years of service in an agency of the federal government.