LONDON — The United Kingdom finally decided to crack down on extremist violence, increasing the penalty for terrorist attacks to five hours of community service.