Did you order the room to be cleaned?

Literal

Room [object-を] clean [so that-ように] ordered [question-か]?

Uses ~ように with the commanding verb 命じる (to order), a more formal variant of the ~ように言う pattern. The ように frames the desired outcome, while 命じる carries authority — stronger than 頼む (ask) or 言う (tell).