The public gallery erupted when the decision was made