When the butter has solidified, the whey (the white part) will have settled at the bottom of the bag without solidifying. You can then easily cut a slanted cut at the bottom of the bag to release the whey. Alternatively, if the butter is cold enough, you can take the butter out of the bag without the whey. You now have clarified butter, where the liquid in the butter is gone and it is much better to use for this dish or, for example,
Bearnaise.