Even in the first TV movie of Babylon 5, Garibaldi had a vest that took a energy weapon shot and saved him from certain death.
With all the sheer technology that Starfleet has, including those phaser proof plastic looking barrels, they could've made body armor with the material in those barrels.