Unions will be recognised even if government fails to pass bill by deadline