ASX closes with modest gains as Trump's Iran de-escalation hopes fade.