do as (one is told/ordered…)
in accordance with
in compliance with
just like
Structure
*Verb[passive] + (が) + まま + (に)
[Verb[passive] + が + ままに is an older form and not very common nowadays]
[A[passive] + まま(に) + B is used to express that B is done in compliance with A, without any opposition or deviation. A is usually a request, order, desire, instruction, etc.]
[The verb in passive form is non-past]
[とおり and ように are more common ways to express this grammar point]