The federal government has announced it will transfer $461 million to New Brunswick for infrastructure projects as part of a new agreement.