Amtrak restoring canceled trains after tentative agreement reached