Spain's dockers end strike after deal with employers