Gaia-4b and 5b: radial velocity confirmation of Gaia astrometric orbital solutions reveal a massive planet and a brown dwarf orbiting low-mass stars