Upscaling microbial chemotaxis in porous media