New York-based Ambac Financial Group Inc. on Thursday filed a lawsuit to protect its rights against what it deemed the “illegal" clawback of certain revenue by the Commonwealth put into effect last month.