A former Massachusetts state senator should spend two years in prison after being convicted of illegally obtaining unemployment assistance and filing a false tax return, the federal government argued, citing the “greed” at the heart of the politician’s conduct.