Added failed consent dialog state to handle cases where applying privacy settings fails midway through the process and async handling to the policy script, along with additional browser tests to cover it. Resolves: https://github.com/brave/brave-browser/issues/55649 --------- Signed-off-by: Vadym Struts <vstruts@brave.com>