The Greater Manchester mayor received his first union donations in two years in a major boost to his by-election campaign.