North Carolina will get $545 million in federal stimulus funds to speed passenger trains between Charlotte and Raleigh and for connections to Washington, D.C.