BNSF Railway must pay $400m to a Native American tribe