The federal government is sending $147 million Massachusetts’ way to expand high-speed internet in the state.