He did as he was told.
as 引导方式状语从句,意为“他照办了.”
He did what he was told
what 引导宾语从句,意为:他把吩咐他的时做好了.
前句强调方式,后句强调内容