The purpose of this legislation, known as the "Freights First Act," is to change how rail lines, junctions, and crossings near ports and rail yards are used by Amtrak, the national passenger rail service. The main objective is to limit the preference that Amtrak currently has over freight trains when both need to use the same rail infrastructure in these specific areas.