The department is expected to award 138 graduate degrees this year to its “pure” majors, up from 97 the previous year, even amid massive layoffs in the tech sector and questions over the role that artificial intelligence will play in the industry’s future.