How could the FBI recover BTC from Colonial’s ransomware payment?

But Bitcoins are anonymous! However could they get refunded?