The court heard that gardai believe an attack was planned on Ireland’s first mosque on behalf of a right-wing extremist group.