Valeant, Ackman agree to split costs in shareholders class action