So if Marvel got back the X-Men, and the FF which characters would they not have access to? With the Sony deal could they still do their own versions characters like Venom and Black Cat,or would those characters be out of bounds since Sony is giving them their own movies?
Sony still owns the Spidey rights; they basically just loaned the character to Marvel to use in their films, in exchange for Marvel handling the creative process for Sony's Spider-Man films and letting them be set in the MCU. So I'd say that, yes, this deal would still leave Marvel without access to the full Spidey universe of characters, though a friendly relationship with Sony could help there.
Also, I think Universal still has distribution rights to the Hulk, which is why Marvel hasn't made another Hulk solo movie.