President Donald Trump announced on Friday an agreement to end the partial government shutdown for three weeks, backing down from his defiant stand against allowing a budget without funding for his election promise of a wall along the Mexican border to deter smugglers and illegal immigrants.