Agreement reached on Employment Rights Bill