A person shall not be held liable for damages or penalties for any act or failure to act resulting directly or indirectly from compliance with any provision of this regulation, or an official action, notwithstanding that such provision or action shall subsequently be declared invalid by judicial or other competent authority.