This isn’t some grand conspiracy it’s a closed beta for a video game. It’s pretty normal to have an NDA or embargo agreement to get access. It sounds like valve just goofed the implementation. So yeah it’s totally legal for them to post it, valve just might avoid giving them early copies in the future.