Vertex models and $\mathbb{E}_n$-algebras