Barcelona board approved 4 tranches of fund raising, the 4th only needed if LaLiga did not agree with their accounting manoeuvre, which they didn't.
So to be able to get players registered on time and to buy Bernardo they needed to trigger the 4th tranche of money raising, which they have.
Good business, if you think gambling with the clubs future is a good thing to do. I certainly do not. Catastrophe looms imo.