Ireland outlast Scotland in a pulsating Six Nations Triple Crown decider to keep their championship hopes alive and deny the Scots in Dublin.