A Framework to Understand the Biocompatibility and Motility of E. coli in a Synthetic Yield-Stress Fluid