After nearly three years of negotiations with the Long Island Railroad, a coalition of union-represented workers that includes more than 900 members of Jamaica, N.Y., Local 589 reached a tentative agreement on an amended contract with the commuter carrier and its parent agency, the Metropolitan Transit Authority.