Show will end in 2018 with two-hour movie special. Union was rumoured to have sued network earlier this year.