Make It Go Viral! Rate-optimal Control for Resource-Constrained Branching Processes