Are Language Models Consequentialist or Deontological Moral Reasoners?