I believe Fury said at the end that he expected Stark to blab everything, that it was a calculated move to get the Skrull off their guard by making them think they'd gained an advantage. So Fury intended his cover to be blown because the strategic gain was worth that sacrifice.
And as the ending of the episode points out probably meaningless as his group is already compromised.