I can’t see any way this could reasonably be considered illegal. Nasty, petty, short-sighted and stupid, sure, but barring actual treason legislators could block or propose anything they like within the rules and procedures of Congress.
You’d probably have a better argument against someone like Darrell Issa revealing classified data on CSPAN, and even that has gotten no traction at all.