Massachusetts owes the federal government $2.1 billion because of a mistake made years ago with​ unemployment benefits.