A Spanish state-owned shipbuilder is expected to confirm this Thursday that it is buying Harland and Wolff, the Belfast shipyard best known for having built the Titanic.