Send a legal notice to both Company B and A.
Claim damages suffered by you due to the negligence of Co. B in leaking out your details even before your scheduled interview, through your notice.
Likewise, through your legal notice to CO. A, seek the kike/promotion/bonus to which you were entitled to you but which have been withed without any just and sufficient cause.
If the legal notices do not yield any results, you have the option of approaching the Court.