Ireland's prime minister says the government "had to act" as the military is called in to remove protesters blocking fuel depots.