>You can legally disclose your salary with anyone (including in the US).
You can legally do lots of things in the US. At will employers can also legally let you go without a reason. It's not going to be easy to show that they let you go for a legally protected reason.